package com.hry.springbootmybatis.service.impl;

import com.hry.springbootmybatis.mapper.BookMapper;
import com.hry.springbootmybatis.pojo.Book;
import com.hry.springbootmybatis.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: HRYing
 * @Date: $ $
 * @Description:
 */
@Service
public class BookServiceImpl implements BookService {
    @Resource
    BookMapper bookMapper;

    @Override
    public Book selectById(Integer id) {
        Book book = bookMapper.selectById(id);
        return book;
    }
}
